package com.zhaopf.jms.producer;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by Administrator on 2017/8/7 0007.
 */
public class AppProducer {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context=new ClassPathXmlApplicationContext("producer.xml");
        ProducerService producerService=context.getBean(ProducerService.class);
        for (int i=0;i<100 ;i++){
            producerService.sendMessage("赵鹏飞发送测试消息===="+i);
        }
        context.close();
    }
}
